package partner_domains

// 表名也是cache的tag
var TableName = "partner_domains"

// 租户配置
type PartnerDomains struct {
	Id        int64  `xorm:"pk autoincr"`
	PartnerId int64  `xorm:"integer notnull unique(p_d) 'partner_id'"`
	Domain    string `xorm:"varchar(64) notnull unique(p_d) 'domain'"`
	Env       int    `xorm:"tinyint notnull default(1) 'env'"`
	Region    int    `xorm:"tinyint notnull default(1) 'region'"`
	Status    int    `xorm:"tinyint null default(0) 'status'"`

	EnvName    string `xorm:"-"`
	RegionName string `xorm:"-"`
}
